<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:if test="${pagination != null && pagination.totalCount > 0}">
	<div class="page">
		<div class="page-left">
			<span>共 </span>
			<span style="color: #a2a0a0;font-weight: bold;">
				<c:out value="${pagination.totalCount}" />
			</span>
			<span>条记录</span>
		</div>
		<a href="javascript:;" class="prev"><span>◄</span></a>
		<c:forEach items="${pagination.pageNumList}" var="page">
			<c:choose>
				<c:when test="${page eq pagination.currentPage}">
					<span class="current"><c:out value="${page}"/></span>
				</c:when>
				<c:when test="${page eq '0'}">
					<span style="color:black">...</span>
				</c:when>
				<c:otherwise>
					<a href="javascript:;" class="num" data-page="<c:out value='${page}'/>"><span><c:out value="${page}"/></span></a>
				</c:otherwise>
			</c:choose>
		</c:forEach>
		<a href="javascript:;" class="next"><span>►</span></a>
	</div>
	<input type="hidden" id="currentPage" value="${pagination.currentPage}" />
	<input type="hidden" id="rowsPerPage" value="${pagination.rowsPerPage}" />
	<input type="hidden" id="totalCount" value="${pagination.totalCount}" />
</c:if>